import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";

export interface ReqCreateExp extends BaseRequest {
    course:ObjectId,
    name:string,
    startTime:Date,
    endTime:Date,
    language:'cpp'| 'rust'| 'python3'| 'go'| 'javascript'| 'java'| 'C#'|'php'|'不限',
    questions:{
        description:string,
        input:string,
        output:string,
        score:number
    }[]
}

export interface ResCreateExp extends BaseResponse {
    
}

export const conf: BaseConf = {
    needRole: 'teacher',
    needLogin: true 
}